#include<iostream>
using namespace std;
class Date
{
public:
	Date(int year, int month, int day)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	bool operator==(Date d)
	{
		return (_year == d._year) && (_month == d._month) && (_day == d._day);
	}
private:
	int _year;
	int _month;
	int _day;
};
int main()
{
	Date d1(2022, 9, 22);
	Date d2(2022, 10, 5);
	cout << (d1 == d2) << endl;
	return 0;
}